views = {}
TS.views = views


TS.toView = (targetName, args)->
	currentView = views.currentView
	currentView?.hide()

	targetView = views[targetName]
	views.currentView = targetView

	targetView.show.apply targetView, args

